<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2022/5/13
  Time: 13:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工添加</title>
</head>
<body>
<h1>员工添加</h1>
<a href="${pageContext.request.contextPath}/findAll.emp">员工列表</a>
<hr/>
<form action="${pageContext.request.contextPath}/add.emp" method="post">
    姓名:<input type="text" name="name"/><br/>
    工资:<input type="text" name="salary"/><br/>
    性别:
    <input type="radio" name="gender" value="man" checked>男
    <input type="radio" name="gender" value="woman">女<br/>
    学历:
    <select name="edu">
        <option value="-1">请选择</option>
        <option value="1">大专</option>
        <option value="2">本科</option>
        <option value="3">研究生</option>
    </select><br/>
    兴趣:
    <input type="checkbox" name="hobbies" value="1"/>吃饭
    <input type="checkbox" name="hobbies" value="2"/>睡觉
    <input type="checkbox" name="hobbies" value="3"/>打豆豆<br/>
    <input type="submit" value="添加">
    <span style="color:red;">${empMsg}</span>
</form>
</body>
</html>
